package com.jk.bgmainconsumer.controller;

import com.jk.bgmainconsumer.entity.AdministratorEntity;
import com.jk.bgmainconsumer.service.AdminConsummerService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("administrator")
public class AdministratorController {

    @Resource
    private AdminConsummerService adminService;

    @RequestMapping("findAdministrator")
    public List<AdministratorEntity>findAdministrator(AdministratorEntity AdministratorEntity){

        return adminService.findAdministrator(AdministratorEntity);
    }
}
